package demo.excmaputil;

import java.util.Map;

import demo.excmaputil.entity.User;
import demo.excmaputil.service.UserService;
import demo.excmaputil.util.excmap.ExcMapUtil;
import demo.excmaputil.util.excmap.UserExcMapConfig;

public class Test {

	public static void main(String[] args) {
		UserService userService = new UserService();
		User user=userService.findUser();
		Map<String, Object> map = ExcMapUtil.entityToMap(user);
		Map<String, Object> map2 = ExcMapUtil.entityToMap(user,UserExcMapConfig.CONFIG);
		System.out.println(map);
		System.out.println(map2);
	}

}
